package com.issac.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
public class Retailer {

  // mybatis-plus默认insert的id字段为"id",该注解便可正确识别
  @TableId("retailer_id")
  private String retailerId;
  private String retailerName;
  private String telephone;
  private String address;
  // 逻辑删除标志
  @TableLogic
  private long status;

  // 填充策略
  @TableField(fill = FieldFill.INSERT)
  private Date createTime;


  public String getRetailerId() {
    return retailerId;
  }

  public void setRetailerId(String retailerId) {
    this.retailerId = retailerId;
  }


  public String getRetailerName() {
    return retailerName;
  }

  public void setRetailerName(String retailerName) {
    this.retailerName = retailerName;
  }


  public String getTelephone() {
    return telephone;
  }

  public void setTelephone(String telephone) {
    this.telephone = telephone;
  }


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }


  public long getStatus() {
    return status;
  }

  public void setStatus(long status) {
    this.status = status;
  }


  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

}
